﻿
#include "geomodel.h"
GeoModel::GeoModel()
{

}

GeoModel::~GeoModel()
{
    for(int i=0;i < m_vctData.size();++i)
    {
        if(m_vctData[i]){
            delete m_vctData[i];
            m_vctData[i] = nullptr;
        }
    }

}

void GeoModel::AddData(Data *pData)
{
    m_vctData.push_back(pData);
}

void GeoModel::DelData(int nIndex)
{
    m_vctData.erase(m_vctData.begin()+nIndex);
}
